package com.pet.web.controller.wechat.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 产品对象 pet_product
 *
 * @author pet
 * @date 2022-10-09
 */
@ApiModel
public class WxCartBody {
    /**
     * 主键ID
     */
    @ApiModelProperty(value = "产品ID", required = true)
    private Long productId;

    @ApiModelProperty(required = true)
    private String openid;

    @NotBlank(message = "openid不能为空")
    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    @NotNull(message = "产品ID不能为空")
    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }
}
